Skip to content

USB Serial driver patch#192

Merged
VanceVagell merged 11 commits intoVanceVagell:mainfrom
dkaukov:usb_patch_02
Jan 26, 2025
Merged

USB Serial driver patch#192
VanceVagell merged 11 commits intoVanceVagell:mainfrom
dkaukov:usb_patch_02

Conversation

@dkaukov
Copy link
Collaborator

@dkaukov dkaukov commented Jan 25, 2025

This fixes lost packets from USB serial driver.
The main discussion is here: mik3y/usb-serial-for-android#614

Refactored SerialInputOutputManager:

- Implemented multiple read buffers to improve USB reading efficiency and reduce latency.
- Used separate threads for reading and writing, enhancing concurrency and performance.
- Removed read timeouts, as they are not necessary for event-driven data reading.

These changes enhance the responsiveness, reliability, and robustness of USB communication.
@dkaukov dkaukov requested a review from VanceVagell January 25, 2025 22:00
@sonarqubecloud
Copy link

@VanceVagell
Copy link
Owner

Wow this looks really great, thanks Dmitry. I will test this locally tomorrow before merging.

@VanceVagell VanceVagell merged commit a768980 into VanceVagell:main Jan 26, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants